Formulation of triangular movement in bearings and distances